axis3d ( num = 0, range = {}, title = "", titleheight = 0.05, numheight = 0.05, sticklen = 0.02, lticklen = 0.01, inside = 0, outside = 0, nonum = 0, noticks = 0, all = 0, remove = 0, bottomfront = 0, bottomback = 0, bottomleft = 0, bottomright = 0, topfront = 0, topback = 0, topleft = 0, topright = 0, frontleft = 0, frontright = 0, fronttop = 0, frontbottom = 0, backleft = 0, backright = 0, backtop = 0, backbottom = 0, leftfront = 0, leftback = 0, lefttop = 0, leftbottom = 0, rightfront = 0, rightback = 0, righttop = 0, rightbottom = 0 ) Types: num int range double[] title string titleheight double numheight double sticklen double lticklen double inside int outside int nonum int noticks int all int remove int bottomfront int bottomback int bottomleft int bottomright int topfront int topback int topleft int topright int frontleft int frontright int fronttop int frontbottom int backleft int backright int backtop int backbottom int leftfront int leftback int lefttop int leftbottom int rightfront int rightback int righttop int rightbottom int
-1
The num,range,title,titleheight,numheight, sticklin,lticklen,inside,outside,nonum, noticks,all and remove arguments have exactly the same meaning as in axis. The selection of the axis/axes to manipulate is a little more complicated. In the two dimensional case you have only four direcetions: top,bottom,left,right. In the three dimensional case you have the six sides of a cube and on each side four posible directions. The sides of the cube are labeled by top,bottom,left,right,front,back. To define on these sides a direction the you simply choose the side next to that direction. So righttop selects the right side of the cube and the direction next to the top side and so on.
gensurface ( z, x = {}, y = {} ) Types: z double[] x double[] y double[]
[int[],double[],double[],double[]] (Containing the mesh)
line3d ( x1 = {}, y1 = {}, z1 = {}, x1, y2, z2, color = -1 ) Types: x1 double/double[] y1 double/double[] z1 double/double[] x1 double y2 double z2 double color int
-1
mesh3d ( indx, x, y, z, num = 0, color = -1, gridColor = -1, xrange = {}, yrange = {}, zrange = {}, position = {}, angle = {} ) Types: indx int[] x double[] y double[] z double[] num int color int gridColor int xrange double[] yrange double[] zrange double[] position double[] angle double[]
-1
3 0 1 2 4 2 3 1 0This means that mesh3d should draw first a triangle from point 0 over point 1 to point 2 and second a closed polygon with edgepoints 2 3 1 0.
The color arguments defines in which color the polygons should be filled. With the gridColor argument mesh3d optionally draws the boundary of each polygon, so a visible grid is layed over the surface.
The num,xrange,yrange,zrange,position and angle arguments have the same meaning as in the plot3d function.
plot3d ( x = {}, y = {}, z = {}, color = -1, num = 0, xrange = {}, yrange = {}, zrange = {}, position = {}, angle = {}, line = 0, xtitle = "", xtitleheight = 0.05, ytitle = "", ytitleheight = 0.05, ztitle = "", ztitleheight = 0.05, numheight = 0.05 ) Types: x double[] y double[] z double[] color int num int xrange double[] yrange double[] zrange double[] position double[] angle double[] line int xtitle string xtitleheight double ytitle string ytitleheight double ztitle string ztitleheight double numheight double
-1
The color,xrange,yrange,zrange,xtitle, ytitle,ztitle,xtitleheight,ytitleheight, ztitleheight and numheight arguments have the same meanig as in the plot function. Also the position argument ist mostly the same, the only difference is that you have to define a cube by to points in space, thus the position array contains 6 elements.
The angle argument is a 3d specific option. Since you can't change the viewing direction of the 3d graphic device, you may rotate the plot instead. The angle array contains 3 elements defining the Euler-angles of the plot. The first elements defines a rotation about the z-axis, the second a rotation about the y-axis and the last is again a rotation about the z-axis. A good choise is for example {60,30,-90}.
surface3d ( z, x = {}, y = {}, num = 0, color = -1, gridColor = -1, xrange = {}, yrange = {}, zrange = {}, position = {}, angle = {} ) Types: z double[] x double[] y double[] num int color int gridColor int xrange double[] yrange double[] zrange double[] position double[] angle double[]
-1
triag3d ( x1, y1, z1, x2, y2, z2, x3, y3, z3, color = -1 ) Types: x1 double/double[] y1 double/double[] z1 double/double[] x2 double y2 double z2 double x3 double y3 double z3 double color int
-1
velocity_field3d ( u, v, w, x = {-1}, y = {-1}, z = {-1}, startX = {-1}, startY = {-1}, startZ = {-1}, colors = {-1}, nstep = 1, stepSize = 0.1, headScale = 0.5, noaxis = 0 ) Types: u double[] v double[] w double[] x double[] y double[] z double[] startX double[] startY double[] startZ double[] colors char[] nstep int stepSize double headScale double noaxis int
-1
>u=replicate(cos(dincarr(4,4)/5.),4); >v=replicate(transpose(sin(dincarr(4,4)/5.)),4); >w=darr(4,4,4)+0.4 >window(0,\t3d); >velocity_field3d(u,v,w);